<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <if condition=" $invite_code neq '' ">
			<title>注册 - Remote MySQL</title>
		<else/>
			<title>添加用户 - Remote MySQL</title>
		</if>
		<link rel="stylesheet" type="text/css" href="{$Think.__APP_PUBLIC__}/css/reset.css">
        <link rel="stylesheet" type="text/css" href="{$Think.__APP_PUBLIC__}/css/public.css">
        <script language="javascript" type="text/javascript" src="{$Think.__APP_PUBLIC__}/js/jquery-1.8.2.js"></script>
        <script language="javascript" type="text/javascript" src="{$Think.__APP_PUBLIC__}/js/{$Think.MODULE_NAME}/add_user.js"></script>
        <script language="javascript" type="text/javascript">
            var HOST_NAME = "{$Think.HOST_NAME}";
			var check_nickname = "{$check_nickname}";
        </script>
    </head>

    <body>
        <include file="Base:head" />
        <div>
    		<fieldset>
				<if condition=" $invite_code neq '' ">
					<legend align="center">&nbsp;注册 - Remote MySQL&nbsp;</legend>
				<else/>
					<legend align="center">&nbsp;添加用户 - Remote MySQL&nbsp;</legend>
				</if>
                <form action="do_add_user" method="post" autocomplete="off" onsubmit="return check_submit()" class="rmt_form">
				<table>
                    <tr>
                        <td class="title"><label for="username">用户名：</label></td>
                        <td><input type="text" name="username" id="username" /></td>
                    </tr>
                    <if condition="$check_nickname">
                    <tr>
                        <td class="title"><label for="nickname">昵称：</label></td>
                        <td><input type="text" name="nickname" id="nickname" /></td>
                    </tr>
                    </if>
                    <tr>
                        <td class="title"><label for="pwd">密码：</label></td>
                        <td><input type="password" name="pwd" id="pwd" /></td>
                    </tr>
                    <tr>
                        <td class="title"><label for="repwd">确认密码：</label></td>
                        <td><input type="password" name="repwd" id="repwd" /></td>
                    </tr>
                    <tr>
						<td colspan="2">
							<if condition=" $invite_code neq '' ">
							<input type="hidden" name="invite_code" value="{$invite_code}" />
							</if>
							<input type="submit" value="确定" />
						</td>
                    </tr>
				</table>
                </form>
            </fieldset>
        </div>
    </body>
</html>
